"""Process生成进程"""
# encoding=utf-8
import time
from multiprocessing import Pool, Queue, Process
import multiprocessing


def func(q):
    print('*' * 30)
    q.put('1111')


if __name__ == "__main__":
    queue = Queue()
    p_list = []
    for i in range(5):
        p = Process(target=func, args=(queue,))
        p_list.append(p)
    for p in p_list:
        p.start()
    for p in p_list:
        p.join()

    print(queue.qsize())
    print(queue.get())
